<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:cfn="http://web.conquest.meb.org/function"
	xmlns:pretty="http://ocpsoft.com/prettyfaces" template="/WEB-INF/templates/ui.xhtml">

	<h:form id="deckInfoForm">
		<h:panelGroup layout="block" class="form-group">
			<h:outputLabel value="Name" for="deckName" />
			<p:inputText id="deckName" value="#{deckBuildCtrl.deck.name}" />
		</h:panelGroup>

		<h:panelGroup layout="block" class="form-group">
			<h:outputLabel value="Description" for="deckDescription" />
			<p:inputTextarea id="deckDescription" value="#{deckBuildCtrl.deck.description}" rows="15"
				autoResize="false" />
		</h:panelGroup>

		<p:commandButton value="Save" action="#{deckBuildCtrl.saveDeck}" update="@form">
		</p:commandButton>
		<p:commandButton value="Save as copy" action="#{deckBuildCtrl.saveDeckAsCopy}" update="@form">
		</p:commandButton>

	</h:form>

</ui:composition>